package com.lh.api.config;

/**
 * 主体配置相关常量
 */
public class MyConstants {

    private MyConstants() {
    }
    /**
     * 登录验证码相关key
     */
    public static final String LOGIN_SMS_CODE_KEY = "login_sms_code:%s";
    /**
     * 注册验证码相关key
     */
    public static final String REG_SMS_CODE_KEY = "reg_sms_code:%s";

    public final static String TOKEN_CACHE = "OnlineTokenApp#userId#";//缓存会员对象的key
    public final static String USERID = "#userId#";//缓存会员对象的key

    public final static String RUQUEST_INFO_NAME = "QequestInfoName";//请求用户信息加密

    /**
     * 找回密码验证码相关key
     */
    public static final String SECRET_SMS_CODE_KEY = "secret_sms_code:%s";

    /**
     * Constant
     */
    public static final String USER_INFO_CACHE = "userInfo:%s";
    /**
     * 有效时间15天
     */
    public static final long FIFTEEN_DAYS = 15*24*60*60*1000L;

    /**
     * 用户ID key值
     */
    public static final String USER_KEY = "phone";
    /**
     * 用户信息 key值
     */
    public static final String USER_INFO_KEY = "userInfo";
    /**
     * 短信发送每天限制次数key
     */
    public static final String SMS_CODE_DAILY_COUNT = "SmsCodeDailyCount:%s";

    /**
     * 请求返回内容的key
     */
    public static class ReturnMsg{
        private ReturnMsg() {
        }

        public final static String USER_NO_EXIST="user_no_exist";
        public final static String INVALID_VERIFICATION_CODE="invalid_verification_code";
        public final static String HAS_REGISTERED="has_registered";
        public final static String LOGIN_SMS_MSG="login_sms_msg";
        public final static String REG_SMS_MSG="reg_sms_msg";
        public final static String FIND_SMS_MSG="find_sms_msg";
        public final static String IS_ORIGINAL="is_original";
    }

}
